﻿package {
	import org.flixel.*;
	
	/**
	 * ...
	 * @author test
	 */
	public class Utils {

		static public function icos(_x:Number):Number {
			return Math.cos(_x * Math.PI / 180)
		}

		static public function isin(_x:Number):Number {
			return Math.sin(_x * Math.PI / 180);
		}

		static public function generalToTile(_x:Number, _y:Number):FlxPoint {
			return new FlxPoint(Math.ceil(_x / 35), Math.ceil(_y / 35));
		}

		static public function tileToGeneral(_x:Number, _y:Number):FlxPoint {
			return new FlxPoint(_x * 35, _y * 35);
		}

		public function Utils(){

		}

	}

}